/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lyricsguy.lyrics.process;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 *
 * @author User
 */
public class LyricsProcessor {

    private String lyrics;
    private List<String> words = new ArrayList();
    private Map<String, Integer> wordsCounter = new HashMap();

    public LyricsProcessor(String lyrics) {
        this.lyrics = lyrics;
        IgnoreWordsChecker ignoreWordsChecker = new IgnoreWordsChecker();
        String[] wordsList = lyrics.split(" ");

        for (String word : wordsList) {
            if (ignoreWordsChecker.checkForIgnore(word)) {
                words.add(word.toLowerCase());
            }
        }

    }
    
    public List<String> getWords() {
        return words;
    }

    
}
